/*
** wrepa.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include <stdio.h>
#include "pictor.h"


/*
** Prints attribute-only to the current window pane for the
** specified number of columns.
*/
void wrepa(int color,int count)
{
	if(_PL_winhead != NULL) {
		if((unsigned)_CURR_WPANE.row < (unsigned)getwrows() &&
			(unsigned)_CURR_WPANE.column < (unsigned)getwcols()) {

			setvpos(_CURR_WPANE.top + _CURR_WPANE.row + 1,
				_CURR_WPANE.left + _CURR_WPANE.column + 1);
			if(count > (getwcols() - _CURR_WPANE.column))
				count = (getwcols() - _CURR_WPANE.column);
			vrepa(color,count);
			_CURR_WPANE.column += count;
		}
		if(_PL_winhead->style & WO_TEXTCURSOR)
			wsynccurs();
	}

} /* wrepa */
